// dlg.txt

//MK Edit

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 31;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter Azam, the largest city in the Low Dhaga. It is an ancient city, built into the base of the huge stone spire to the north. The oldest chambers are in the cool underground. The remaining buildings hide in the shadows of the spire.";
	text2 = "There are a few Ro walking around in the street, hurriedly moving through the hot streets to go about their business. Coming from the cosmopolitan cities of Haven, you immediately notice something unusual: Everyone out in the streets is a man.";
	text3 = "The men are clothed in the loose, flowing linen clothes of the Dhaga. They all have long blades hanging from their belts, and they all give you a cold look as they pass by.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0 && gf(80,10) >= 4;
	text1 = "You return to Azam for the first time since you defeated the raiders and ka-beasts. With your bravery and sweat, you single-handedly saved them from a dire threat. Their raiders will no longer attack their clans.";
	text2 = "Any hopes of gratitude you might have had are instantly dashed. If anything the city is more tense than it was when you are last here. The guards are visibly nervous now. There are fewer men on the streets. The few you see hurriedly move away.";
	text3 = "It is perplexing. Whatever the Ro are thinking and saying in private, something very important has not yet reached Haven's ears.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You enter the hall of the Raasa of the Low Dhaga. The local king gives his orders from this cool, cluttered warren. This hall is centuries old, painstakingly burrowed out of the stone, and every inch is full of artifacts and trophies. They tell the tale of centuries of victories (and losses) of the Low Dhaga.";
	text2 = "When you enter, the young Raasa of the hall smiles. He politely places his blade in the corner of the hall, making sure that you can see his muscles and scars. Then he returns to the table and starts pouring tea.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "You enter the Governor's Hall of Haven. This little plot of land belongs to your Empire. For a moment, according to the law at least, you are home.";
	text2 = "Since you are here to interview and judge their governor, you inspect the hall. On the surface, everything seems fine. The guards seem competent. The floors are swept. All of the stonework and decor is designed to intimidate the rustic clan folk of the Rokaj.";
	text3 = "Yet, everything is off. It is too quiet. There is no energy in the air. The guards salute properly, but then they grimly avoid your gaze. Time seems to slow down.";
	text4 = "The majestic meeting hall is to the north. Governor Aato of the Low Dhaga awaits.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "This is the Azam stoneworks. Tons of fine stone from the quarries of the clans are brought here, to be evaluated, processed, and shipped out on river boats. The men of the Ro are all around you, talking, drinking, and arguing about their craft.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "This sage of the Erudico is hard at work on some complicated experiment. You don't interrupt the work. You don't want to cause any explosions.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Raasa Lawita

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "The Raasa of the Low Dhaga leans against one of the cluttered tables in the hall. There is no shortage of strong men lining the walls. Security is strong. However, this man looks entirely capable of defending himself.";
	text2 = "He rises and gives you a bow, deep enough to be respectful. _Welcome, envoy. I have awaited Haven's return, and I am happy that you have made your way here._";
	text3 = "_It is a troubled time. Perhaps we can work together to make things better._";
	text5 = "Raasa Lawita continues to host you in his hall. He is consistently confident and cordial. You never lack for tea and snacks. It would be a calm, friendly meeting, were it not for all of the guards.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(80,10) < 2;
	question = "_I am [P] [N] of Haven. I have come on a diplomatic mission._";
	text1 = "_I am Raasa Lawita, and I speak for the Low Dhaga. We can talk freely soon, of course, but first there are some old traditions we should take care of._";
	code =
		if (gf(31,16) == 0) {
			sf(31,16,1);
			ro_faction(1);
			}
	break;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(80,10) < 2;
	question = "_Hello, Raasa. I stopped by to talk._";
	text1 = "He smiles. _This will be a casual meeting? Seems appropriate. This is the Ro, after all. I am Raasa Lawita, and I speak for the Low Dhaga. I'm sure you will forgive me if we follow the old traditions._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(80,10) < 2;
	question = "_I have a lot of jobs to do. Let's get this over with, vassal._";
	text1 = "His smile does not break for a moment. His eyes are still warm. The guards remain still. It's as if the insult never happened.";
	text2 = "_I am Raasa Lawita, and I speak for the Low Dhaga. I'm sure you will forgive me if we follow the old traditions._";
	code =
		if (gf(31,16) == 0) {
			sf(31,16,1);
			ro_faction(-2);
			}
	break;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_The old traditions?_";
	text1 = "_This is a diplomatic ceremony, of course. I have never experienced one. It has been so long since Haven paid attention to my troubled land._";
	text2 = "_First, I must ask: Have you received permission to travel the Pilgrimage Road, as required by tradition and treaty?_";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = gf(10,11) == 0;
	question = "_I have not yet gotten permission to travel the Pilgrimage Road._";
	text1 = "_Well, that is not a concern. Of course, you are welcome. However, you should go see Raasa Elha in Laskara. No visit to our land will be complete until you see her._";
	text2 = "_But you are here now. You are welcome here, and I will help you conclude your diplomacy as quickly as possible._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = gf(10,11) == 0;
	question = "_I have gotten permission to travel the Pilgrimage Road._ (Lie.)";
	text1 = "He seems confused, but only for a moment. He smiles. _The Rokaj appreciates this gesture of respect._";
	text2 = "_You are welcome here, and I will help you conclude your diplomacy as quickly as possible._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = gf(10,11) > 0;
	question = "_I have gotten permission to travel the Pilgrimage Road._";
	text1 = "He nods. You suspect that he already knew the answer. _The Rokaj appreciates this gesture of respect._";
	text2 = "_You are welcome here, and I will help you conclude your diplomacy as quickly as possible._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = gf(10,11) == 0;
	question = "_I am grateful. Yes, I am here for diplomacy._";
	text1 = "_And since this is a formal diplomatic mission from Haven, you are here to hear if I have any petitions. Do we need help, and are we, as vassals of Haven, entitled to ask you for it?_";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_Yes, I am here on a diplomatic mission._";
	text1 = "He nods. His confidence is starting to worry you. _And since this is a formal diplomatic mission from Haven, you are here to hear if I have any petitions. Do we need help, and are we, as vassals of Haven, entitled to ask you for it?_";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_That is correct._";
	text1 = "_I am sorry for saying something you already know. Over the last few months, the Low Dhaga has been beset by raiders. And yes, there are always raiders here. Our land is known for it. There are lots of them, but they are strange, and many are not from here._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I know that there are raiders and ka-wolves about._";
	text1 = "_Yes, and in quantity. We have been fighting them, and we have not been winning. They are powerful, they have the aid of strange magic, and they are receiving support from outside._";
	text2 = "_Which brings me to my petition._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I am aware. Some of them tried to kill my brother and me._";
	text1 = "_A cowardly act that will forever shame the Rokaj. However, that attack was not the fault of the Low Dhaga._";
	text2 = "_The raiders came from outside our lands, and in quantity. We have been fighting them, and we have not been winning. They are powerful, they have the aid of strange magic, and they are receiving support from outside. Which brings me to my petition._";
	
begintalknode;
	state = 16;
	nextstate = 17;
	condition = 1;
	question = "_What is your petition?_";
	text1 = "He takes a deep breath. He shuffles some papers around on the table. He is nervous for the first time, and you see why. Traditionally, these petitions are not important. He is going to ask for something real.";
	text2 = "_We have tried to find the leaders of these raids. The ones who plague us, hiding in the hostile peaks of the northern Dhaga. We have failed, so we must ask for your help. We petition Haven to end these raids._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Usually, these petitions are just a formality._";
	text1 = "He lets slip a moment of irritation. _Usually, Haven's lands are peaceful. Usually, Haven acts to end these disruptions without being asked._";
	
begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_The Rokaj is a large place. I'm not sure how to find them._";
	text1 = "_Don't worry. The cities of the Low Dhaga will guide you. I can help you._";

begintalknode;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "_I need to get vengeance on these raiders. I will satisfy your petition._";
	text1 = "Raasa Lawita actually looks surprised for a moment. _Excellent. Your brother, Prince Sutter, has a reputation as a hunter. You seem cut from the same stone. Well, we can provide you prey that will make for a great tale._";

begintalknode;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "_This is an excessive request, but I am bound by duty. I will satisfy it._";
	text1 = "Raasa Lawita is a little irritated, but he lets it go. _We are grateful. Your brother, Prince Sutter, has a reputation as a hunter. Well, we can provide you prey that will make for a great tale._";

begintalknode;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "_You ask for more than you should. I decline._";
	text1 = "Raasa Lawita looks down at the table and takes a deep breath. A lesser leader would bow down before the might of Haven. Not this one.";
	text2 = "_This is our right. We are allowed to make this request. If not, you can send someone in your place. This is our right, and we will be heard._";
	text3 = "And, alas, your mother did order that you do this.";
	
begintalknode;
	state = 18;
	nextstate = 10;
	condition = 1;
	question = "_Your petition has been heard. I will decide how to proceed._";
	text1 = "_When you are ready to proceed, speak with me. I can tell you where to go. The raiders torment your vassals, and they tried to kill you. We are all eager for vengeance. Soon, let us begin._";
	text2 = "_That concludes the formalities. What would you like to discuss?_";
	code =
		sf(80,10,2);
		toggle_quest(14,1);
		toggle_quest(10,3);

		run_game_hardcode(1003);
	break;
	
// POST INTRO

begintalknode;
	state = 10;
	nextstate = 20;
	condition = gf(80,10) >= 2;
	question = "_You are the Raasa of the Low Dhaga._";
	text1 = "_I have been given that honor. I hope I survive to serve for a long time._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_How did you become Raasa?_";
	text1 = "_To explain how the Rokaj does things would take ... a lifetime. I don't think we entirely understand it._";
	text2 = "_The final decision takes place on Prova Krug, our highest peak. The deliberations there tend to be violent and are always secret._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_How long have you served?_";
	text1 = "_I have held this post for three years. The clans of the Prova Krug are wild, and they rarely hold the same opinion for two days. Yet, they still seem to like me._";
	text2 = "_I got part of my education in Haven itself. I gained a lot of knowledge of politics by studying your mother._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_What are your duties?_";
	text1 = "_I do as little as possible. The clans of the Low Dhaga violently insist on ruling themselves as much as possible._";
	text2 = "_I mainly settle arguments. Between the clans of the Low Dhaga. And between the Low Dhaga and the other provinces. The Ro never has a shortage of arguments._";
	
begintalknode;
	state = 20;
	nextstate = 21;
	condition = gf(80,8) >= 4 || gf(10,11) >= 2;
	question = "_And Raasas can be assassinated._";
	text1 = "Raasa Lawita bows his head for a moment. His distress seems entirely sincere. _I mourn the murder of any Raasa. Raasas are chosen by their people. For the Geld Nas to kill a Raasa takes away the power of the free Ro._";
	text2 = "_But it does have a lesson for us all: How hard it is for a Raasa to achieve the balance._";
	
begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Achieve the balance?_";
	text1 = "_Haven's power holds the Rokaj. A Raasa must support the freedom and rights and power of the Ro, but must also pay Haven what it is due. It is a very hard balance to maintain._";
	text2 = "He does not elaborate on what this might have to do with recent killings.";

begintalknode;
	state = 10;
	nextstate = 22;
	condition = gf(80,10) >= 2;
	question = "_I would like to know more about the Low Dhaga._";
	text1 = "_It is a beautiful proud land. Ignore the insults directed at us by the other provinces. It is only jealousy. Travel our lands and see for yourself._";
	text2 = "_I suspect you are eager to learn more. After all, Consort Darmal, your father, was born here._";

begintalknode;
	state = 22;
	nextstate = -1;
	condition = 1;
	question = "_You have some local practices that concern me._";
	text1 = "_I don't doubt it. However, the way we are, our clans, our raids, our ways we deal with our people, these are our business. I advise you: Don't cause trouble. Our people suffer torments enough._";

begintalknode;
	state = 22;
	nextstate = 10;
	condition = 1;
	question = "_I'm not concerned about my father._";
	text1 = "Lawita nods. He doesn't seem to believe you. He thinks that this is just a tactic. _Of course. You have a much more important mission._";
	

begintalknode;
	state = 22;
	nextstate = 23;
	condition = 1;
	question = "_I would like to know more about my father's clan._";
	text1 = "_That is understandable. In a happier time, it would be possible. Right now, this is very difficult. I'm afraid that his clan is gone._";

begintalknode;
	state = 23;
	nextstate = 24;
	condition = 1;
	question = "_Gone?_";
	text1 = "_Consort Darmal, in his life, provided many advantages to his clan. Your clan. When he died, a lot of the other clans were jealous, and they wanted revenge. Darmal's clan moved beyond their reach to a new, prosperous land in the virgin wilds between here and Dyandia._";
	text2 = "_You need not worry about them now, but I suspect you don't have time to visit them._";
	
begintalknode;
	state = 24;
	nextstate = 10;
	condition = 1;
	question = "_And none of them remain?_";
	text1 = "_Some of them stay in the Rokaj, to speak for them and to trade. Some of them are sure to greet you and claim a relation. Not all of those claims will be honest._";
	text2 = "_I wish I could tell you more. I'm sure this is a disappointment. What else would you like to know?_";
	
begintalknode;
	state = 10;
	nextstate = 25;
	condition = gf(80,10) >= 2 && gf(80,10) < 4 && gf(31,11) < 4;
	question = "_I am ready to hunt some brigands._";
	text1 = "The guards around the hall are instantly alert. You see a few hints of smiles. Raasa Lawita says, _The basic facts are clear. The raids started over the last few months. They soon became vicious and unusual, in no way like the normal raiding that is part of our lives here._";
	text2 = "_There are few of them in the southern Dhaga. To find where they are from and hunt down their leader, you will have to fight your way into the northern Dhaga._";
	text3 = "_Now that Malachite Pass has been retaken, you can enter the northern hills. That is where the raiders first came from._";
	code =
 		if (gf(31,11) <= 1)
 			rs(3);
 			else rs(2);
 	break;
 	
begintalknode;
	state = 25;
	nextstate = 39;
	condition = 1;
	question = "_So who are the raiders?_";
	text1 = "_We don't know. They are very careful to not be trapped. They attack at night, in cowardly ways. They don't let themselves be caught alive._";
	text2 = "_That is strange behavior for Ro raiders, but it is not the most unusual thing._";

begintalknode;
	state = 39;
	nextstate = 25;
	condition = 1;
	question = "_How are the raiders unusual?_";
	text1 = "_Some of them are ka-wolves and ka-boars. Mindless beasts with human forms. Somehow, the human raiders get the beasts to come along with them and stay under control. We have no idea how._";

begintalknode;
	state = 25;
	nextstate = -1;
	condition = 1;
	question = "_There are no raiders near Azam?_";
	text1 = "_There were a few, but we hunted them down. My warriors made sure of it. They are dead or fled._";
	text2 = "_The northern Dhaga is far wilder and has far fewer warriors to hunt raiders. They are the ones who need your help._";

begintalknode;
	state = 25;
	nextstate = 26;
	condition = gf(31,11) < 2;
	question = "_What do you want me to do?_";
	text1 = "_The first step is to get you into the northern Dhaga. The main route is through Malachite Pass, to the north. However, the main tower there has a large force of mindless ka-wolves surrounding it. My soldiers are busy keeping the clans down here safe._";
	text2 = "_I think clearing that tower of foes will be something you want to do._";
	code =
		sf(31,11,1);
		toggle_quest(14,3);
	break;
	
begintalknode;
	state = 26;
	nextstate = -1;
	condition = 1;
	question = "_Is that the only route to the northern Dhaga?_";
	text1 = "_There are other passes, but they are very difficult. Even native Ro have a hard time traveling them safely._";
	text2 = "_It is far better for Haven to clear the main road. There are good reasons for you to want to liberate that tower._";
	
begintalknode;
	state = 26;
	nextstate = -1;
	condition = 1;
	question = "_How can I clear Malachite Pass?_";
	text1 = "_There is a gated tower blocking the main road. It has been under siege by a swarm of ka-wolves. They have a good position, making it hard to slay them. I'm sure they can't stand against the power of Haven._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = 1;
	question = "_What foes can I expect there?_";
	text1 = "_Ka-wolves, mainly. They are clumping there. They haven't forgotten why they are there and wandered off yet, which is very strange._";
	text2 = "_I'm sure that they have support, but our scouts haven't been able to see it._";

begintalknode;
	state = 26;
	nextstate = 27;
	condition = 1;
	question = "_Why is this something I'd want to do?_";
	text1 = "_The tower there is under siege. There are Havenite soldiers trapped inside. They have not been able to fight their ways out, and they are probably not in good condition._";
	text2 = "_Liberating the tower would rescue some of your people._";

begintalknode;
	state = 27;
	nextstate = -1;
	condition = 1;
	question = "_Haven soldiers are trapped there? Why?_";
	text1 = "_Your warriors are admirably brave. When the raids started, they could have fled, but some of them tried to hold the pass. They did not expect so large a force._";
	text2 = "_Governor Aato knows that they are there, but he has done nothing to free them. We find this odd. Perhaps he can explain his reasons._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(31,11) == 1 && gf(35,11) > 0 && gf(35,12) == 0;
	question = "_I went to Malachite Pass, destroyed the brigands there, and freed Haven's soldiers._";
	text1 = "You describe the battle. The Raasa nods. _That is quite a tale about an impressive deed. Yet, the work isn't done. The brigands still hold the main tower. As long as that is true, the pass isn't free and we can't support the north Raasa._";
	text2 = "_That tower needs to be cleared of invaders._";

begintalknode;
	state = 10;
	nextstate = 28;
	condition = gf(31,11) == 1 && gf(35,12) > 0;
	question = "_Malachite Pass has been completely retaken._ Tell the tale.";
	text1 = "The Raasa and his guards listen with close attention and approval. They are suitably impressed by the cunning and skill of Haven.";
	text2 = "_There is an important mystery that we need to solve. How are the raiders controlling the ka-wolves?_";
	text3 = "_Perhaps this is now a good time to discuss your governor._";
	code =
		if (gf(80,11) >= 3)
			rs(3);
	break;
	
begintalknode;
	state = 28;
	nextstate = -1;
	condition = 1;
	question = "_Have you ever heard of someone called 'The Wolf'?_";
	text1 = "He takes note about this on a piece of parchment on his desk. _No. That is very interesting. I will learn what I can._";

begintalknode;
	state = 28;
	nextstate = -1;
	condition = gf(80,11) < 3;
	question = "_What about our governor?_";
	text1 = "_You still need to decide whether Governor Aato will continue his incompetent rule. I would discuss this with you._";

begintalknode;
	state = 28;
	nextstate = -1;
	condition = 1;
	question = "_The head brigand was commanding the ka-wolves with this._ Give the broken staff.";
	text1 = "He takes the broken pieces of wood and looks at the runes carved on them. _These writings make no sense to me. I will send this trophy to the Erudico and send word of what we've learned to Etzae._";
	text2 = "_The path to the northern Dhaga is free. Now, at last, you can hunt the brigands in their center of power._";
	code = 
		set_spec_item(22,-1);
		set_flag(31,11,2);
		toggle_quest(14,4);
		award_party_xp(MED_QUEST_XP);

	break;		

begintalknode;
	state = 25;
	nextstate = 29;
	condition = (gf(31,11) == 2 || gf(31,11) == 3) ;
	question = "_What must I do in the Northern Dhaga?_";
	text1 = "_They are fighting their own war against the invaders. I will not fight it for them. You need to travel north to the city of Etzae and meet with the Master there._";
	text2 = "_Aurichalcum will guide you._";
	code = 
		set_flag(31,11,3);
		toggle_quest(14,5);

	break;		

begintalknode;
	state = 29;
	nextstate = -1;
	condition = 1;
	question = "_Will I be welcomed in Etzae?_";
	text1 = "Raasa Lawita thinks about this. _You will be greeted as one who comes to help. We will send ahead your story and all that you have helped us learn. I think you will be welcomed properly and in a way that doesn't shame the Rokaj._";

begintalknode;
	state = 10;
	nextstate = 30;
	condition = gf(31,11) == 3 && gf(42,11) > 0;
	question = "_I have been victorious in the Ouachita Mountains._ Tell the tale.";
	text1 = "Again, the warriors here listen carefully as you tell your tale. For some reason, they are less enthusiastic now than they were after your victory in Malachite Pass. When you are done, there is a long silence.";
	text2 = "At last, Raasa Lawita says, _That is a remarkable tale._";

begintalknode;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "_I heard of 'The Wolf' again._";
	text1 = "_But you learned nothing of who or where he, she, or it is? I have learned nothing either. Still, this is useful intelligence. I will see what I can learn._";

begintalknode;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "_It is the truth._";
	text1 = "_We believe it. You have displayed the strength of Haven, and you have risked your own life to help the Rokaj. This was ... not expected._";

begintalknode;
	state = 31;
	nextstate = 10;
	condition = 1;
	question = "_What do you have to say about your petition?_";
	text1 = "_I must say that our request has been satisfied. I declare that our petition is answered, and your work here is done. Please convey this news and our best respects to the Queen._";
	text2 = "Then, awkward silence. You expected something more. A treasure? A medal? It's an anti-climax. Still, you have what you want. This part of your quest is complete.";
	text3 = "Then he breaks the awkward silence. _You still need to choose who the governor of our province will be. I have an offer. It can be very helpful to all of us. If you are willing, we can discuss it._";
	code = 
		set_flag(31,11,4);
		toggle_quest(14,10);
		award_party_xp(BIG_QUEST_XP);
		toggle_quest(10,4);
		if (gf(80,11) > 2)
			rs(3);
	break;		

begintalknode;
	state = 10;
	nextstate = 32;
	condition = gf(80,10) >= 2;
	question = "_I want to talk about Haven's rule here._";
	text1 = "_We are controlled by Haven. The Ro are a proud, independent people, but we have also spent much of our history controlled by other Empires. We know that, one day, you will be gone._";
	text2 = "_Until then ... You're not the worst conqueror we have had._";

begintalknode;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of Haven?_";
	text1 = "_I have known and been friends with many Havenites. I have traveled outside my land. I even received some of my education in Haven. My clan sacrificed much to give me these advantages, and I have honored them._";
	text2 = "_I do not hate Haven. I do not see you as evil._";

begintalknode;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "_How has being our vassal been for you?_";
	text1 = "_Being in Haven brings safety and trade. We are wealthier. Our children are more likely to survive to adulthood. These are not small things._";
	text2 = "_There is a cost. It costs us freedom. Costs us an idea of what it means to be Ro. Still, I would choose to remain in your empire, if it were only my choice._";

begintalknode;
	state = 32;
	nextstate = -1;
	condition = gf(35,1) == 0;
	question = "_What about our governor?_";
	text1 = "_That ... is a more difficult question. Governor Aato has served here a long time. He is old, tired, complacent, and full of wrong ideas about how to win our respect. He does not help you._";
	text2 = "_Of course, that isn't my full opinion. I would ask that you explore more. Learn about the results of his rule. Then talk to me more._";

begintalknode;
	state = 10;
	nextstate = 33;
	condition = gf(35,1) > 0 && gf(80,11) < 3;
	question = "_I have explored the Low Dhaga a bit. Now I'd like to talk about our governor._";
	text1 = "_Then I will abandon diplomatic delicacy. I will ask the main question: Do you think he is competent to rule us?_";

begintalknode;
	state = 33;
	nextstate = 10;
	condition = gf(80,11) < 2;
	question = "_I think Governor Aato is competent._";
	text1 = "His faces shows no emotion. _Then I must think so too. There is nothing more that needs to be said._";

begintalknode;
	state = 33;
	nextstate = 34;
	condition = 1;
	question = "_Governor Aato is incompetent and needs to be replaced._";
	text1 = "_I agree with you. I take a risk in saying it, but there it is. If Haven paid more attention and gave us braver rulers, you would not have the problems you are having._";
	text2 = "_You are to decide whether Aato stays in charge here. True?_";

begintalknode;
	state = 34;
	nextstate = 35;
	condition = 1;
	question = "_That is correct._";
	text1 = "_But you have a problem. You need to choose a replacement. No strong ambitious Havenites are here. Aato makes sure to drive anyone with talent away. You need a real leader to replace him._";
	text2 = "_It is a problem._";

begintalknode;
	state = 35;
	nextstate = 36;
	condition = 1;
	question = "_And how would you solve my problem?_";
	text1 = "_I volunteer. I am a citizen of Haven. I have been to Haven. I have been raised under your laws. I am entirely competent to master the Low Dhaga, as Raasa and governor together._";
	text2 = "_I can provide valuable aid if given this authority. However, there are rules against it, rules you can bypass._";
	code =
		if (gf(80,11) < 2)
			sf(80,11,2);
	break;
	
begintalknode;
	state = 36;
	nextstate = -1;
	condition = 1;
	question = "_Valuable aid?_";
	text1 = "_If I had full control of this province, I could collect the tribute that is your due but I can't reach as just a Raasa. You will have more resources at your disposal than dull old Aato can get you._";
	text2 = "_This is not a bribe. It is getting you what you are entitled to but aren't getting. If you choose to make me governor, come back and inform me of the official decision. When you do, I will give a gesture of our good will._";
	
begintalknode;
	state = 36;
	nextstate = -1;
	condition = 1;
	question = "_What rule keeps you from being governor?_";
	text1 = "_I am not Haven-born. Only full Havenites can ascend to the lofty level of governor. A rule that is not getting you good results in the Rokaj. It is an outdated and bigoted practice, and you can change it._";

begintalknode;
	state = 36;
	nextstate = -1;
	condition = 1;
	question = "_How can I bypass the rules?_";
	text1 = "_You have but to say so. You will tell your General Miranda what will happen to Aato, correct? You have but to say I am governor, and I am. You are a [P], after all. Your words become the law._";

begintalknode;
	state = 36;
	nextstate = 37;
	condition = 1;
	question = "_Could making you governor cause problems?_";
	text1 = "_I believe those rules came in place because, centuries ago, some outsider governors caused troubles. Minor rebellions that Haven had to put down. I would not be a traitor nor that foolish._";

begintalknode;
	state = 37;
	nextstate = 36;
	condition = 1;
	question = "_You can be trusted?_";
	text1 = "_Of course! I accept Haven's rule. I believe that the Rokaj benefits from it. To try to expel you would only lead to our destruction. I want to make your rule better, peaceful, more efficient._";

begintalknode;
	state = 37;
	nextstate = 36;
	condition = 1;
	question = "_Wouldn't you say you can be trusted even if you can't?_";
	text1 = "_I have been educated and influenced by Haven. What can I say? Your stubborn honesty has infected me._";

begintalknode;
	state = 36;
	nextstate = 10;
	condition = 1;
	question = "_I will consider making you governor._";
	text1 = "_I can only ask for consideration. You are the [P]. You are responsible for the good of all of Haven._";

begintalknode;
	state = 36;
	nextstate = 10;
	condition = 1;
	question = "_I will not allow a vassal to be governor._";
	text1 = "_That is your right. I will not mention it again unless asked._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,11) == 3 && gf(80,15) < 3;
	question = "_I made my decision. Governor Aato will remain in his post._";
	text1 = "Lawita's smile does not go away, but it seems a lot more forced. _I expected no less. I had to try. Perhaps, one day, Aato will wake up and find himself competent. That is our only hope now._";

begintalknode;
	state = 10;
	nextstate = 38;
	condition = gf(80,11) == 4 && gf(80,15) < 3;
	question = "_I made my decision. You will be governor._";
	text1 = "_I have already heard, and I am already preparing. I am honored by your trust, [P]. Truly touched. I will make sure to live up to your hopes._";
	text2 = "_I wish to give you a little gesture of gratitude. I want to show how useful a servant I can be._";
	code =
		if (gf(31,17) > 0)
			rs(2);
	break;
	
begintalknode;
	state = 38;
	nextstate = -1;
	condition = gf(31,17) == 0;
	question = "_Go on._";
	text1 = "_I will make sure that regular shipments of our finest building materials are sent to your forts. I know that Haven will not trust me at first. I want to send a clear message: Our little land and your Empire can be happiest when we work together._";
	text2 = "_I will also open the door to my private quarters. Feel free to take what spare change you find._";
	code =
		if (gf(31,20) == 0)
			activate_mine_resource(18);
		sf(31,20,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,15) >= 3;
	question = "_I want to talk about the future of the Ro._";
	text1 = "_Alas, we are talking about the judgment of the High Litha. This is the business of Prova Krug. I can't discuss it here._";
	text2 = "_I have made all decisions for the good of my people. So have you. Soon, you will leave, and we will all be forced to face the consequences of our decisions._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,10) >= 2 && gf(92,25) == 1 && gf(31,12) == 0;
	question = "_I am looking for a lost banner from the Great Uprising._";
	text1 = "You describe the banner. The Raasa is amused. _Yes, I know how attached Haven is to its symbols. You can afford that luxury._";
	text2 = "_Alas, I am young. The Great Uprising is an ancient story. I swear I know nothing about your banner. The older Ro might know more._";
	code =
		sf(31,12,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,10) >= 2;
	question = "_That is all I need for now._";
	text1 = "_Then I bid you farewell. Return wherever you want. The door of the Raasa is always open._";
	action = END_TALK;
	
// Ringenburg

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You intercept an old Dhagan man with a double armload of scrolls. He sets them down and gives you a little bow. _Welcome, [P]._";
	text2 = "_I am Ringenburg, of the northern Dhaga. I serve our wise young Raasa, and he told me to tend to your needs._";
	text5 = "Ringenburg follows you around in case you need anything. You note that, whenever he talks to you, he looks down at the ground. His robe obscures his wrinkled face.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_How do you serve?_";
	text1 = "_Like all of the other Raasas, Raasa Lawita is given an assistant. I take care of a variety of minor tasks, so that my master can pay attention to wrangling the clans._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_What do you do, exactly?_";
	text1 = "_I make sure Raasa Lawita's halls are properly tended to. I keep records and take notes. I temporarily serve in his place if he dies. My duties are similar to the counsels of your governors._";
	
begintalknode;
	state = 41;
	nextstate = -1;
	condition = gf(92,25) == 1 && gf(31,12) == 0;
	question = "_I am looking for a lost banner from the Great Uprising._";
	text1 = "You describe the banner. Ringenburg shakes his head. _I'm sorry. The raiders are a great threat to us, and I don't have time to concentrate on locating pieces of cloth._";

begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "_You think you are good at your job?_";
	text1 = "_I believe I am one of the best in all of the Ro. After all, I am still alive._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_That is an issue?_";
	text1 = "_I am elderly, as you can see. Often, when a clan is angry at a Raasa, they will send the Geld Nas to kill an official or assistant as a way of registering displeasure. I have made sure that I am more valuable to the Low Dhaga alive than dead._";

begintalknode;
	state = 40;
	nextstate = 44;
	condition = 1;
	question = "_I'd like to know more about the Low Dhaga._";
	text1 = "_It is a beautiful, stark, harsh, wild place. I came from the north, which is harsher and wilder. I can't describe it. You can only learn about the Ro by existing in it._";
	text2 = "_I am not a teacher, anyway. I study what the Raasa orders me to. Like ka-wolves, for example. I spend more time controlling the city guard._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Is the city guard unreliable?_";
	text1 = "_They are very reliable. Just not to me. They all come from their clans, and they all want to help their clans. I watch them and make sure they are guarding the city for the good of the whole Low Dhaga. It is not a natural thing for them to do._"; //clans

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about ka-wolves._";
	text1 = "_I'm sure that you know more than I do. Those deadly, treacherous creatures are a plague in all of Haven. I only try to learn about them because there are so many of them in our hills of late._";
	text2 = "_All I can say is: Don't let them trick you. They are mimics. They don't think like people do, but they pretend. It's a trick to catch you off your guard._";

begintalknode;
	state = 40;
	nextstate = 43;
	condition = 1;
	question = "_Tell me about the Raasa._";
	text1 = "_Raasa Lawita is young and strong. He is bold and, for one so young, wise. I would have preferred that he got to serve longer before being tested by the raiders._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_How long has he served?_";
	text1 = "_Only three years. Still, that is quite a milestone. If a Raasa is seen as not working out, the Geld Nas will usually retire him before two years have passed. We don't coddle incompetents like Haven does._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_What did he do about the raiders?_";
	text1 = "_Raasa Lawita has mostly purged the southern Dhaga of raiders. There are a few hiding out here and there, but the roads are mostly safe._";
	text2 = "_However, he doesn't have the forces to reach the northern Dhaga. Happily, Haven does._";

begintalknode;
	state = 43;
	nextstate = 45;
	condition = gf(80,8) >= 4 || gf(10,11) >= 2;
	question = "_Raasas are being assassinated._";
	text1 = "_I am aware. That is not unusual, but it is a bad thing to happen in this chaotic time. I am especially afraid because, if something happens to Raasa Lawita, it will lead to my own destruction._";

begintalknode;
	state = 45;
	nextstate = 46;
	condition = 1;
	question = "_Your own destruction?_";
	text1 = "_I will become Acting Raasa. I am seen as too old and too weak to lead. Sad for me. That means I will face death from the Geld Nas within ... Hmmm. Let's say, four months._";

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_That's pretty harsh._";
	text1 = "_It is the way of the Rokaj. We can't afford weak leaders. It is a painful part of the Deep Truth we all must share._";

	
// Governor Aato

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "You are welcomed to Azam by the governor, hand-chosen by Haven to look after Haven's interests here. Haven's trade and soldiers are all controlled by this man. This exhausted, elderly man. He looks like he has been here for decades, slowly decaying.";
	text2 = "He grabs a cane and slowly rises to greet you. He gives you an unsteady bow, waves for food and drink, and settles down into his throne again. _I am Governor Aato. I am in charge here. All answer to me. We are honored that the [P] comes. We will help however we can._";
	text5 = "Governor Aato sits in his throne and sips from his wine with trembling fingers. You aren't sure how he was able to hold such an important post for so long.";
	text6 = "Then again, this is not a luxury post. Miserable weather. Not a lot of wealth to extract. Sand. Plus, the danger of rebellion. It must be hard to find good volunteers.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(80,11) == 0;
	question = "_I, [P] [N] of Haven, gratefully accept your welcome._";
	text1 = "_Well spoken, young [P]. It has been so long since our Queen remembered that we are here._ He laughs dryly. _I wonder if we are still on your maps._";
	text2 = "_Anyway, I knew that you were coming. I made sure to have a report ready._";

begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(80,11) == 0;
	question = "_Hello. I'm here to judge you._";
	text1 = "_I imagined so. I knew that a youth was coming to practice his power by lording it over me. Being judged is ... I have forgotten what it is like. It has been so long since our Queen remembered that we are here._";
	text2 = "_Anyway, I knew that you were coming. I made sure to have a report ready._";

begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(80,11) == 0;
	question = "_Yes, yes. Let's make this quick._";
	text1 = "If Governor Aato is offended, he doesn't show it. _I am sure that we want to take care of business quickly. I'll make a report. You will judge me. You will leave and forget about us for another few decades. It is the process._";
	text2 = "_I knew that you were coming. I made sure to have a report ready._";

begintalknode;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "_Give me your report._";
	text1 = "_All is well in the Low Dhaga. Our forts are secure. Tribute is being paid. Our soldiers are largely safe. The land is peaceful. Our Queen does not need to be concerned._";
	text2 = "_My philosophy regarding dealing with the Ro continues to be justified. That is all._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_The Low Dhaga is peaceful now? You think so?_";
	text1 = "_Well, it is peaceful by the standards of the Rokaj. I mean, this wild land is never fully peaceful. However, it meets a reasonable standard of peacefulness._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_Are you aware that raiders tried to kill me?_";
	text1 = "_That is a tragic insult. However, as I understand it, all of the raiders who entered the Gentle Coast have been slain. They committed a crime, and then they were brought to swift, brutal justice._";
	text2 = "_The matter seems settled._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = 1;
	question = "_And what is your philosophy regarding the Ro?_";
	text1 = "_The Rokaj is a violent place. They hate being controlled by outsiders, but they will tolerate it if they are handled with a very light touch. As long as they are never provoked, we can profitably rule here forever._";
	text2 = "_As you investigate, please let yourself be guided by my wisdom. When you see how strong our control is, I'm sure you will keep me in my post._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Has this been working so far?_";
	text1 = "_It has been a century since the Great Uprising. The Rokaj have never been so peaceful or so productive. The only unrest is a handful of brigands and ka-wolves in the hills. Also, a pathetic attack on you that was easily defeated._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_What about all the raiders?_";
	text1 = "_The Low Dhaga always has raiders. Raiding is their favorite activity, their eternal love and hobby. Raasa Lawita will probably complain about them to you, but only because he wants more authority and resources._";
	text2 = "_Don't be fooled. The Ro tend to be wily and dishonest._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Have any Havenites been attacked?_";
	text1 = "_Our soldiers are involved in a few ... enduring situations. Nothing that we don't usually have to face in the Ro. Nothing that will cost us great strength or wealth._";

begintalknode;
	state = 73;
	nextstate = 70;
	condition = 1;
	question = "_Thank you for your report. I will begin my investigations._";
	text1 = "_Of course. I will be here, doing my job, if you have any more questions. Just remember: The Rokaj can never be peaceful or safe._ He coughs. _What you see out in the hills is just the normal state of things._";
 	code =
 		sf(80,11,1);
 	break;
 	
begintalknode;
	state = 70;
	nextstate = 74;
	condition = gf(80,11) > 0;
	question = "_You are Haven's governor here._";
	text1 = "He scratches at the arm of his throne with a long, gray fingernail. _I am. It is my honor and my life's work. My effectiveness has kept me in this post for a very, very long time._";

begintalknode;
	state = 74;
	nextstate = -1;
	condition = 1;
	question = "_How long have you had this post?_";
	text1 = "_I only recently reached my thirtieth year. The sands of the Low Dhaga tend to scour all life into nothingness, but I endure. It testifies to the wisdom of my policies._";

begintalknode;
	state = 74;
	nextstate = -1;
	condition = 1;
	question = "_How did you get this position?_";
	text1 = "_The only true way for a Havenite to advance: Unrelenting hard work. I served as counsel in several safer vassals. When this post became available, other counsels were afraid of coming here._";
	text2 = "_I leapt at the chance to volunteer in this grim place. I sacrificed my happiness for the good of Haven._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_How have you been successful?_";
	text1 = "_When I came here, I studied the Rokaj. I talked to them. I read histories. I sent out spies. With effort, I was able to develop two principles, through which the Rokaj can be ruled by Haven permanently._";

begintalknode;
	state = 75;
	nextstate = 76;
	condition = 1;
	question = "_What are your basic principles?_";
	text1 = "_One. The Ro always lie. They have some Deep Truth in them, usually something about hating Haven. They will never tell you how they really feel. They just say what you want to hear._";
	text2 = "_Two. This doesn't matter. All they really care about is not being provoked. As long as you leave them alone as much as possible, they do their clan business and pay their taxes._";

begintalknode;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "_And how has this worked lately?_";
	text1 = "_Extremely well. I mean, yes, there have been some bumps lately. That happens sometimes. We'll hang a few raiders in the sun to dry, and we will have calm again._";

begintalknode;
	state = 70;
	nextstate = 77;
	condition = gf(80,11) > 0 && gf(80,10) < 4;
	question = "_I need to know about the chaos in the Low Dhaga._";
	text1 = "_To be fair, things are, by Rokaj standards, entirely calm and peaceful. Because of this, our soldiers are being kept close to home and we are not wasting money keeping our forts at a high level of alert._";
	text2 = "_There are reports of higher than usual levels of raider activity in the northern Dhaga. Some forts and mines have temporarily been taken._";
	text3 = "_There is one urgent situation, but it will soon be settled without royal involvement._";
	code =
		if (gf(35,11) > 0)
			rs(3);
	break;
	
begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "_When did the extra raids start?_";
	text1 = "_I'm not sure. Raasa Lawita complains so much that his crises tend to flow into each other. A few months ago, I think. I probably have a record of it._";

begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "_The raiders attempted to kill me._";
	text1 = "_A shameful display, I agree, though you immediately showed that scattered band of thugs the power of Haven. I will make sure that penalties are paid. Enough to hurt, but not enough to cause a rebellion._";

begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "_What are you doing to deal with the raiders?_";
	text1 = "_Little, at this point. Raasa Lawita's warriors already reclaimed most of the southern Dhaga. There is a lot of danger in the northern Dhaga, but that is always true. Horrible place._";
	text2 = "_It is not a matter that should require great attention, though Raasa Lawita disagrees. What can I say? He is young._";

begintalknode;
	state = 77;
	nextstate = 78;
	condition = gf(35,11) == 0;
	question = "_What is the urgent situation?_";
	text1 = "_The northern and southern Dhaga are connected by the Malachite Pass. It was surrounded by raiders, as I understand it, a few weeks ago. Unfortunately, a large patrol of Havenite soldiers were staying there when the raiders arrived._";
	text2 = "_They are trapped there at the moment._";

begintalknode;
	state = 78;
	nextstate = 79;
	condition = 1;
	question = "_Haven soldiers are under siege?_";
	text1 = "_'Siege' seems a very lofty word for the situation. They have stone walls and provisions. The raiders are sure to get bored and wander off before our soldiers are in any danger._";

begintalknode;
	state = 79;
	nextstate = -1;
	condition = 1;
	question = "_How long can they last?_";
	text1 = "_I don't know. Weeks? Months? We are watching the situation. That tower tends to have plenty of stores in the lower caves, so our people should be fine._";

begintalknode;
	state = 79;
	nextstate = -1;
	condition = 1;
	question = "_What is being done to free them?_";
	text1 = "_If they are ever in real danger, we will act in a decisive way that doesn't disrupt the overall political situation. For now, though, there is no need for action. I don't want to provoke the Dhagans by marching a large Havenite force up their roads._";

begintalknode;
	state = 79;
	nextstate = -1;
	condition = 1;
	question = "_I should go to save them._";
	text1 = "_Hmmm. You are the [P], so that glory is your right. Also, you can travel freely without provoking rebellion. That is what I hope, anyway. I would talk to Raasa Lawita before engaging in that sort of entertainment, though._";

begintalknode;
	state = 79;
	nextstate = -1;
	condition = gf(31,13) == 0;
	question = "_Your strategy makes sense. You may continue._";
	text1 = "_I am flattered, [P]. Of course, if you decide to go to the Malachite Pass to do a bit of hunting on your own, it might improve the overall situation._";
	code =
		sf(31,13,1);
	break;

begintalknode;
	state = 79;
	nextstate = -1;
	condition = gf(31,13) == 0;
	question = "_Your strategy is cowardice. Your soldiers must be rescued._";
	text1 = "Governor Aato snorts contemptuously. Then he remembers who he is talking to. _Well, [P], I welcome your criticism. I have so much to learn from the young. They are so full of energy._";
	text2 = "_Of course, if you decide to go to the Malachite Pass to do a bit of hunting on your own, it might improve the overall situation and humiliate me in the bargain._";
	code =
		sf(31,13,1);
	break;
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,11) > 0 && gf(80,10) >= 4;
	question = "_I need to know about the current situation in the Low Dhaga._";
	text1 = "_As I understand it, the problem of the raiders has been solved. You helped, of course, but the local clans would surely have managed this on their own. The destruction of the raiders was inevitable._";
	text2 = "_I hope you count this in my favor when I am judged._";
	code =
		if (gf(80,11) > 2)
			rs(2);
	break;
	
begintalknode;
	state = 70;
	nextstate = 80;
	condition = gf(80,11) > 0;
	question = "_You are an expert on the Low Dhaga._";
	text1 = "_As much as any Havenite can be. The clans here, they are very close-knit. Hard to understand. Still, they are people. The Rokaj are like everywhere else, and yet different._";
	text2 = "His voice is strangely flat. It's tired and raspy. You wonder when he last expressed a strong emotion.";
	
begintalknode;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "_You really think that your knowledge is superior to others?_";
	text1 = "_Many complain about my style of rule, but there is one thing that can't be questioned: I am here. I talk to them. I wander their roads, breathe in their sand. I have been lied to by the Rokaj more than any man alive._";
	text2 = "_My knowledge isn't perfect, but, yes, it is superior._";

begintalknode;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "_How is it like everywhere else?_";
	text1 = "_They have the needs and hopes of all humans. They want security. Wealth. The rule of law. They want to be free of fear and be able to pass their wealth down to their children. As long as these things are given and we don't provoke or insult them, we can rule here forever._";
	
begintalknode;
	state = 80;
	nextstate = 81;
	condition = 1;
	question = "_And how is it different?_";
	text1 = "_Oh, all nations are different. All vassals have unique qualities. The Low Dhaga does have certain peculiar beliefs, but who doesn't?_";
	text2 = "_The important thing to remember is their touchiness. Their pride and paranoia and that we can never trust them. If they are too fiercely provoked, you get a Great Uprising._";
	
begintalknode;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "_They have 'peculiar beliefs'?_";
	text1 = "_A few. The most important one is that they keep their women at home, locked away in their clan stockades. This practice is an artifact of the harsher days, when raiders stole not only goods but people as well._";
	text2 = "_Of course, I do nothing to change this practice. That would be a major provocation._";

begintalknode;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "_What was the Great Uprising?_";
	text1 = "_A century ago, the Ro decided that Haven had provoked them too far. At the same time, Havenites forgot to never trust the Ro. The result: A sudden, unexpected, bloody attack. This was followed by an even bloodier counter-attack._";
	text2 = "_Haven held the Ro, and we learned a valuable lesson: Tread lightly, and never trust them._";
	
begintalknode;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "_How can they be our vassals when we can't trust them?_";
	text1 = "He lets out a soft, raspy laugh. _It's very easy, actually. We provide security, settle the worst disputes, and collect taxes. Then they don't care if we are here._";

begintalknode;
	state = 70;
	nextstate = 82;
	condition = gf(80,11) > 0 && gf(80,11) < 3;
	question = "_The Queen has sent me to check in on our vassals here._";
	text1 = "He sort of sinks into his chair, like a big pudding. _I expected as much. This is a standard diplomatic mission. A long, overdue one, I might add. I will, of course, aid your investigation as much as possible._";
	text2 = "_I welcome being tested, because it only gives more proof to my basic principle._";
	
begintalknode;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "_I will be passing judgment on you as governor._";
	text1 = "He nods. He looks sleepy. _I expected as much. I have maintained peace and prosperity. I have no apologies._";

begintalknode;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "_You don't seem very concerned._";
	text1 = "_This is the Rokaj. We've had no major uprisings. Our holdings here are profitable. The people here respect us and accept their vassalage. I could not be doing better._";
	
begintalknode;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "_What is your basic principle?_";
	text1 = "_Do not provoke the Rokaj. They are a violent, impulsive people, but they are very hard to focus and organize. As long as you don't make them angry and give them a cause to focus around, they will be docile._";
	text2 = "_That is why I have not fully maintained the forts. If they were built up, they would provoke the Ro. If we arm the forts, we make them need to be armed. Why bother?_";

begintalknode;
	state = 82;
	nextstate = 87;
	condition = gf(80,10) > 2 && gf(80,11) < 3;
	question = "_I have explored the Low Dhaga. If you want to keep your post, you will have to make changes._";
	text1 = "For a moment, Aato actually shows confidence and resolve. And more than a little irritation. _Of course, young [P]. You forget about us for decades, waltz in and look around, and proclaim that you understand the Ro._";
	text2 = "_I have one response to any 'suggestions' you may have._";

begintalknode;
	state = 87;
	nextstate = 82;
	condition = 1;
	question = "_And that is?_";
	text1 = "_Royalty of Haven have long given respect and freedom to its governors. My job is to keep things peaceful and deliver taxes. By the standards of the Ro, the Low Dhaga is at peace. All taxes have been paid, to the copper bit, every year of my rule._";
	text2 = "He's actually breathing hard. _I am no fool. I know what everyone says about me. Well, if you want to replace me, replace me. If not, I will run things my way. The correct way!_";
	
begintalknode;
	state = 82;
	nextstate = 83;
	condition = 1;
	question = "_I have an idea of how to proceed._";
	text1 = "He seems to get sleepier the longer you talk. _I welcome your opinions, young [P]. I sometimes wonder what you will tell the Queen._";
	
begintalknode;
	state = 83;
	nextstate = 70;
	condition = 1;
	question = "_You are too timid, and it is causing a disaster._";
	text1 = "He gives a little shrug, a tiny tremor of irritation. _Where you see disaster, I see success. Just success on the terms of the Rokaj. Still, that is your opinion. If you give it to General Miranda, we will see what your mother says about it._";
	
begintalknode;
	state = 83;
	nextstate = 70;
	condition = 1;
	question = "_You have maintained peace for a long time. That counts in your favor._";
	text1 = "The edges of his mouth twitch upward. It's quite an effort for his facial muscles. _It does indeed. I am grateful. I hope you pass this wisdom on to General Miranda._";
	
begintalknode;
	state = 83;
	nextstate = 70;
	condition = 1;
	question = "_I think you should be replaced._";
	text1 = "_Perhaps I should be. Yet, who will replace me? Until you find a quality volunteer, I will continue to sit on this throne, giving my life to serve Haven. If such a volunteer existed, I would not be here now._";
	text2 = "_Still, tell General Miranda what you want._";
	
begintalknode;
	state = 83;
	nextstate = 70;
	condition = gf(80,11) == 2;
	question = "_Raasa Lawita has offered to replace you._";
	text1 = "Now that gets an actual reaction out of him. He lurches forward in his chair. _Are you mad? I mean, I am sorry to be so blunt, [P]. You can't allow a Ro to be governor! They can never be trusted with so much power! There is rebellion. Lawita is sure to use his power to fight you._";
	text2 = "_There is a rule against vassals becoming governors for a reason. If you want to keep the favor of your mother, mighty and wise as she is, take my advice: Forget this foolish idea._";
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,11) > 0 && gf(31,15) == 1;
	question = "_I need permission to go to the 'Flintpit Claim'._";
	text1 = "_Hmmm? Oh, you have been talking to Counsel Opal. She is young. She has an active frame of mind. Still, we have been passive enough of late to afford a small provocation. Plus, it is our mine._";
	text2 = "_Yes. Permission is granted._";
	code =
		sf(31,15,2);
		toggle_quest(40,3);
	break;
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,11) == 3;
	question = "_You will be allowed to keep your position._";
	text1 = "_So I have heard. News gets around. I am very grateful, young [P], and I'm sure you will be too. In time._";

begintalknode;
	state = 70;
	nextstate = 85;
	condition = gf(80,11) == 4;
	question = "_You will be replaced by Raasa Lawita._";
	text1 = "He lets out a long, tired sigh. _You can't be serious._";
	
begintalknode;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "_I am serious._";
	text1 = "_It won't happen, of course. You will return to the palace. You will tell your mother what you did. She will shout at you and cancel the order. It will not help your position._";
	text2 = "_But ... That is your choice. You will learn a lot. Now, please, leave me. I need to return to my work: Serving Haven._";
	action = END_TALK;
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,12) >= 8;
	question = "_I have been challenged by the Rokaj._";
	text1 = "_Challenged? You mean, on Prova Krug? That ..._ He shakes his head. _This is a provocation, [P]. A most dire provocation, indeed. I will prepare for its consequences. Thank you for the warning._";
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(80,11) > 0;
	question = "_That is all I need._";
	text1 = "_Thank you for dropping by. I now return to my long vigil serving Haven._";
	action = END_TALK;



// Counsel Opal

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = "After wandering around Azam for a while, you are surprised to come face to face with a woman. The Low Dhagans only let men go outside during the day, it seems.";
	text2 = "She is a Havenite, young and a little star-struck. She runs up and gives a sharp bow. _Welcome, [P]! It is an honor to see you! I am Counsel Opal of the Haven Hall. The governor told me to help you if I can._";
	text5 = "Counsel Opal is quite eager to speak with you. She answers lots of questions about the Low Dhaga and Haven's hall here. Even questions you hadn't actually asked. She talks about everything except the governor she serves.";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = 101;
	condition = 1;
	question = "_So you work for Governor Aato._";
	text1 = "She nods eagerly. _It is a real honor. I am very young for a counsel. By five years, if not ten. This is my first overseas post, and I leapt at the chance to come here._";
	text2 = "She thinks. _It's uncomfortable, at times. I didn't know much about the Low Dhaga when I volunteered to come. Now I know ... Aato sends me out into the town when he shouldn't._";

begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_What do you do for him?_";
	text1 = "_A governor's time is very valuable. They spend lots of time looking out for Haven. Thinking and planning, always being two steps ahead. I take care of all the little jobs and look after the hall._";
	text2 = "_I'll also give advice, if he ever asks for it._";

begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of his rule?_";
	text1 = "The smile vanishes. _My job is to serve him, not judge him. I'm only a counsel. You're a [P]. You do the judging._";

begintalknode;
	state = 101;
	nextstate = 102;
	condition = 1;
	question = "_He sends you out when he shouldn't?_";
	text1 = "_He often sends me into the town to do errands. I think it's to remind the Low Dhagans that Haven is different. We're more advanced, at least in the way we treat women._";

begintalknode;
	state = 102;
	nextstate = 103;
	condition = 1;
	question = "_How does the Low Dhaga treat women?_";
	text1 = "_Some vassals place women in places of power. Some prefer men. Here, the clans keep their women locked away. It's common in the more violent, unstable vassal states. The men go out to work and trade. The women are locked away._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_Is that their only possible fate?_";
	text1 = "_Not quite. Some of the more ambitious, talented women leave the Low Dhaga. They work and trade in the cities of the other provinces. Some join the Erudico. A few rare specimens leave the Rokaj entirely._";
	text2 = "_It's a hard choice, leaving one's home._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of this practice?_";
	text1 = "_Obviously, I don't approve. Then again, they are only vassals. The governor says we must not provoke them. Their backward ways are not our business, as long as Haven stays strong and wealthy._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = gf(31,14) == 0;
	question = "_We need to change this._";
	text1 = "_No, we don't. I beg your pardon, [P]. The Ro don't listen to outsiders. They won't change their ways. They'll only lie more and get angrier._";
	code =
		sf(31,14,1);
	break;
	
begintalknode;
	state = 103;
	nextstate = -1;
	condition = gf(31,14) == 0;
	question = "_I suppose we'll have to tolerate it._";
	text1 = "_Agreed. It is painful, but the Ro are very, very stubborn. We can't change them. We can only make them angry._";
	code =
		sf(31,14,1);
	break;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(80,10) < 4;
	question = "_I'd like to know more about the raider attacks._";
	text1 = "_You should talk to the governor and the Raasa. I am not able to talk about matters of war. I'm pretty new at being counsel._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(80,10) >= 4;
	question = "_I have ended the raider attacks._";
	text1 = "_I have heard! It is so good that you came. The governor was not really acting. For good reasons, I am sure._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(80,11) < 3;
	question = "_I am here to judge Governor Aato._";
	text1 = "_Really? I suppose that makes sense. It's a full diplomatic mission, I hear. I can't help you. I follow the orders of my superior. I don't judge him._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(80,11) == 3;
	question = "_I am allowing Governor Aato to remain in charge._";
	text1 = "_Since that is what you decided, I'm sure it is the wisest course._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(80,11) == 4;
	question = "_Governor Aato will be replaced by Raasa Lawita._";
	text1 = "_Isn't that illegal? Oh, well. You're the [P]. If you made that decision, I'm sure it is wise._";

begintalknode;
	state = 100;
	nextstate = 104;
	condition = 1;
	question = "_Governor Aato asked you to help me?_";
	text1 = "_He did! Within certain limits. He won't provoke the Low Dhagans, but he knows that you will need more supplies._";

begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_I can use more soldiers._";
	text1 = "_The governor has soldiers. That's true. However, he's holding them in reserve. He has plans. I can't let you command them, not without word from the palace._";

begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_I will need command of your forces._";
	text1 = "_All our forces? I'm sorry, [P]. We can't let you take command without permission from the palace. There's rules for these things, even for a [P]._";

begintalknode;
	state = 104;
	nextstate = -1;
	condition = gf(31,15) <= 1;
	question = "_I need more resources._";
	text1 = "_I can help with that. Well, I can help you if you help us. We can get you stone and other supplies. The Flintpit Claim was providing more than we needed._";
	text2 = "_At least, that is what I found out on my own. I wouldn't want to help you without permission. If Governor Aato says I can give you supplies, I can help you get them._";
	code =
		sf(31,15,1);
		toggle_quest(40,1);
	break;
		
begintalknode;
	state = 100;
	nextstate = 105;
	condition = gf(31,15) == 2 || gf(31,15) == 3;
	question = "_I have permission to go to the Flintpit Claim._";
	text1 = "_Then, if it starts producing building materials again, I can send them out for your use. You can rebuild the forts! That claim belongs to Haven, so we just need to control it._";
	text2 = "_Unfortunately, we don't control it right now. You can help us get it back!_";
	code =
		sf(31,15,3);
		toggle_quest(40,4);
	break;

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_Where do I go?_";
	text1 = "_The claim is to the east. Follow the road and look for signs._";

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_What is the situation there?_";
	text1 = "_Raasa Lawita did a very good job of hunting down the raiders in the hills here. He has lots of troops, and he commands them well. However, some of those raiders hid in our claim. It's Haven's land, so the Raasa says he won't defend it for us._";
	text2 = "_You'll have to kill some raiders. Should be easy! Just talk to our manager there for more information._";
	
begintalknode;
	state = 105;
	nextstate = 106;
	condition = 1;
	question = "_Tell me about this claim._";
	text1 = "_Haven bought it from the Low Dhaga fifty years ago. It's a really productive quarry, and we've only just started mining out the crystals under the main pit._";
	text2 = "_It's hard to get good workers out here, though, which is why we use convicts._";

begintalknode;
	state = 106;
	nextstate = -1;
	condition = 1;
	question = "_You use convicts?_";
	text1 = "_Yes! We're one of two mines in the Rokaj that imports criminals. Some crimes require serious punishment but death would be excessive. Those types get sent out here to dig._";

begintalknode;
	state = 100;
	nextstate = 107;
	condition = gf(31,15) == 3 && gf(34,11) > 0;
	question = "_I scoured the brigands out of the Flintpit Claim._";
	text1 = "You tell the tale of your assault. Counsel Opal listens, utterly enthralled. _I never expected to be this close to so much heroism. Now that we can access the workshops, we will be able to start sending you stone._";
	text2 = "_However ... You didn't mention anything about seeing any convicts. We will need workers._";
	code = 
		set_flag(31,15,4);
		toggle_quest(40,5);
		award_party_xp(MED_QUEST_XP);

		activate_mine_resource(21);
	break;		
	
begintalknode;
	state = 107;
	nextstate = -1;
	condition = 1;
	question = "_I think they're still in the tunnels._";
	text1 = "_Then we don't have control of the mines yet. We should talk more. I can help you to get more stone._";

begintalknode;
	state = 100;
	nextstate = 108;
	condition = gf(31,15) == 4 || gf(31,15) == 5;
	question = "_I can help regain control of the Flintpit Claim._";
	text1 = "_We have the surface, but we don't yet have the pits. Those tunnels can provide a lot of stone and crystal, and we can get it to you._";
	text2 = "_You need to enter the shafts and tunnels. There are more raiders down there, and precious, useful convicts as well._";
	code =
		sf(31,15,5);
		toggle_quest(40,6);
	break;

begintalknode;
	state = 108;
	nextstate = -1;
	condition = 1;
	question = "_So I kill all the convicts? Or ..._";
	text1 = "_Hopefully not. If they see you, they will probably surrender immediately. It's not like they can survive an escape into the Dhagan hills. You'll need to get rid of the remaining raiders first, though._";
	
begintalknode;
	state = 108;
	nextstate = -1;
	condition = 1;
	question = "_I assume I'll be getting more supplies out of this._";
	text1 = "_Of course. You have the governor's full support._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(31,15) == 5 && gf(34,12) > 0;
	question = "_The Flintpit Claim has been reclaimed._";
	text1 = "_The manager there sent word ahead of you. You have heroically taken command of the Flintpit Mines, for which all of Haven should be grateful. I have already commanded that its products be sent to your forts for use._";
	text2 = "_Plus, since you were able to save all of your precious convicts, the quarry will operate at full efficiency._";
	text3 = "_Alas, since you were forced to liquidate your precious convicts, the quarry will be inefficient. Sorry._";
	text4 = "_In addition, there was a bounty available for this. It's a modest sum, but you are entitled._ You receive a pouch of gold coins.";
	text5 = "_There was a bounty available for this, but it will need to fund the bonuses you promised the convicts._";
	code = 
		set_flag(31,15,6);
		toggle_quest(40,10);
		award_party_xp(MED_QUEST_XP);

		if (gf(34,16) > 0) {
			rs(2);
			activate_mine_resource(23);
			}
			else {
				rs(3);
				activate_mine_resource(22);
				}
		if ((gf(34,16) > 0) || (gf(34,17) == 0)) {
			rs(5);
			change_coins(100,TRUE);
			}
			else rs(4);
	break;		

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(31,15) == 6;
	question = "_I wouldn't suppose that I could get more resources._";
	text1 = "_Unfortunately, you are currently getting everything we can possibly spare. I am so sorry, [P]. If you go north to [F4], I'm sure you can get more quality stone there._";
	

// Andesite

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "This merchant provides goods for the clans of the southern Dhaga. He sells food, tools, and a wide variety of other supplies. He mainly specializes in weapons, though. It seems like he is wearing half of his stock on his body.";
	text2 = "He eagerly welcomes you into his shop. _Can this be true? Can the mighty [P] of the mightiest of Empires be visiting my little store? I am Andesite. I have blades and such for even the most demanding hunter, made with the finest materials._";
	text5 = "Andesite is constantly drawing daggers and swords to show you. He is justifiably proud of his wares. The Low Dhaga is a land of warriors and raiders, after all. His weapons are made with a wide variety of metals, some rare and precious.";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "_So you are a weapons dealer._";
	text1 = "_Among other things. I sell all sorts of mundane goods that I doubt you need. But in the Rokaj? In the Low Dhaga? There is always a great, great need for a reliable blade._";

begintalknode;
	state = 131;
	nextstate = 132;
	condition = 1;
	question = "_And who do you sell to?_";
	text1 = "_Anybody who walks through the door. As long as you aren't obviously drunk or mad, I will deal fair with you. I can't judge why you need what you need. This is the land of the Deep Truth._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_Deep Truth?_";
	text1 = "_In the Rokaj, speaking too plain tends to lead to death. We have to keep our truest beliefs hidden. So I can't truly know why you need to buy what you buy._";
	text2 = "_The Ro trust each other, because we have to._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_You really ask no questions?_";
	text1 = "_Yes, and don't you want it that way? Does a [P] of Haven want to be interrogated by a humble merchant in some rustic land?_";

begintalknode;
	state = 132;
	nextstate = 133;
	condition = 1;
	question = "_What if the purchaser is a brigand or raider?_";
	text1 = "_Well, raiding is the way of the Low Dhaga. I can't pick and choose. If I do ... There is a danger._";

begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_What is the danger?_";
	text1 = "_I am a merchant, not a judge. If I am seen to favor one clan over another, I'll be made to answer for it. Maybe by an angry warrior. Maybe by the Geld Nas, if I make someone angry enough._";

begintalknode;
	state = 130;
	nextstate = 134;
	condition = 1;
	question = "_What do you know about the raider problem?_";
	text1 = "_I know there have been a lot more of them lately. Not Low Dhagans, though. Outsiders, and they fight with ka-beasts._";
	text2 = "_At least, those are the rumors in the inn. I have a hard time believing it. Ka-wolves fighting with us? Doubtful._";

begintalknode;
	state = 134;
	nextstate = -1;
	condition = 1;
	question = "_Did you sell weapons to these raiders?_";
	text1 = "_Maybe. They don't have little signs on them saying 'Bad Raider'._";
	text2 = "_But I doubt I did. The numbers of raiders we're seeing? I couldn't have armed that many._";

begintalknode;
	state = 134;
	nextstate = -1;
	condition = 1;
	question = "_Those raiders attacked my brother and me._";
	text1 = "_Which is shameful. Which is madness. That only hurts the Rokaj. If someone tried to stab you with one of my daggers, I am really very, very, very sorry._";

begintalknode;
	state = 130;
	nextstate = 135;
	condition = 1;
	question = "_What are the finest materials?_";
	text1 = "_It depends on the purpose, of course. We use bronze for the poor, steel for the practical. For the wealthy and noble, we are able to work the deep metal._";

begintalknode;
	state = 135;
	nextstate = 136;
	condition = 1;
	question = "_What is deep metal?_";
	text1 = "_It is a strange metal. Light and strong. It's found throughout the known lands, but the deposits of it are common in the Low Dhaga. It can be alloyed with steel to make a proper sword._";
	text2 = "_Normally, a steel sword would be superior, except for one thing. Deep metal holds a magical enchantment better than plain steel._";

begintalknode;
	state = 136;
	nextstate = 137;
	condition = gf(31,18) <= 1;
	question = "_Where can we get this metal?_";
	text1 = "Andesite smiles and scratches his chin. _Some mine it. I need to trade for it. There is a possible source nearby. An old drake who, from time to time, trades with the Ro._";
	text2 = "_I want an offer carried to this creature. Gold for deep metal. I think it'll tempt the greedy old beast. I just need someone to carry the message._";
	code = 
		set_flag(31,18,1);
		toggle_quest(41,1);
	break;

begintalknode;
	state = 137;
	nextstate = -1;
	condition = 1;
	question = "_Where is this drake?_";
	text1 = "_It lives in the Firepits, to the northeast. Has for centuries. Called Frakiss. It's a dangerous place, but it gives our young warriors a nice place to test their courage._";

begintalknode;
	state = 137;
	nextstate = -1;
	condition = 1;
	question = "_You really think a drake will trade with you?_";
	text1 = "_A social creature, as its kind goes. Keeps to itself unless it gets the greed itch. Then it will trade with lowly humans for a short time._";
	text2 = "_The problem is talking to it._";

begintalknode;
	state = 137;
	nextstate = -1;
	condition = 1;
	question = "_Why don't you contact the drake yourself?_";
	text1 = "_Well ... It is social. But it is a drake. It likes its privacy, and it's not afraid to eat a human that seems too weak._";
	text2 = "_Normally, I wouldn't try to send a mighty [P] with my message. But ... You might find the Firepits interesting for other reasons._ When you ask what those might be, he shrugs.";
	
begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(31,18) == 1 && gf(33,12) > 0 && gf(33,13) == 0;
	question = "_The drake of the Firepits will trade with you._ Tell the tale.";
	text1 = "Andesite laughs. _Well, I'm glad that I didn't go myself. If I did, I would be dead now. Now that contact is made and a few pests are cleared away, I can send heavily armed men to negotiate._";
	text2 = "_Of course, you need to be paid for your service._ You receive gold and deep metal for your aid.";
	code = 
		set_flag(31,18,2);
		toggle_quest(41,10);
		award_party_xp(MED_QUEST_XP);
		change_coins(200,1);
		change_crafting(0,0,0,2,0);
	break;		
	
begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(31,18) == 1 && gf(33,13) > 0;
	question = "_The drake of the Firepits is dead._ Tell the tale.";
	text1 = "Andesite is shocked. _Frakiss has been here for centuries. This is ... a loss. But you are the master and we are the vassals. I must accept that your decision was wise._";
	code = 
		set_flag(31,18,2);
		toggle_quest(41,10);

	break;		

begintalknode;
	state = 130;
	nextstate = 138;
	condition = 1;
	question = "_I would like to shop._";
	text1 = "_Of course! Please let me show you my wares!_";

begintalknode;
	state = 138;
	nextstate = -1;
	condition = 1;
	question = "_I am buying._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Andesite's Blades",
		  "shopdesc.",
		  26,4,0);	
	break;

begintalknode;
	state = 138;
	nextstate = -1;
	condition = 1;
	question = "_I am selling._";
	text1 = "You conclude your business.";	
	code = 
		start_alter_items(0);
	break;

begintalknode;
	state = 138;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "_Then thank you for giving me the honor of your visit._";
	action = END_TALK;

// Honored Ryx

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = "The man in charge of the hall runs up to greet you. He is a muscular fellow, and his hands and arms bear the marks of long, hard work. He is younger than the other workers, though, and perhaps a bit less fed.";
	text3 = "_Welcome, Havenite! I am Honored Ryx, and I speak for the stoneworkers' guild of the south Dhaga. I didn't expect a visit, but I am happy to show off our proudest craft._";
	text4 = "_Even better, child of Consort Darmal, I can tell you that we are kin. I am related to your clan._";
	text5 = "Honored Ryx shows you around the stoneworks, burying you in arcane details about the work. He is constantly interrupted by the craftsmen, who badger him to settle disputes or assign a price to a pile of marble.";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = 161;
	condition = gf(31,19) == 0;
	question = "_I am overjoyed to meet more family._";
	text1 = "_Of course! I imagined that you must have come here to learn more about what you are made of._ He embraces you. _Welcome home, cousin. I am glad to give you a warm meeting. We want to support you. As I'm sure you want to support us._";
	code =
		ro_faction(1);
		sf(31,19,1);
	break;

begintalknode;
	state = 160;
	nextstate = 161;
	condition = gf(31,19) == 0;
	question = "_This is interesting, but this is not the business I am here for._";
	text1 = "_Of course. You are a [P]! You don't have time to remember something so minor as family. You have great responsibilities. Just know that I want to support you, cousin. As I'm sure you want to support your kin._";
	code =
		sf(31,19,1);
	break;

begintalknode;
	state = 160;
	nextstate = 161;
	condition = gf(31,19) == 0;
	question = "_I am a [P] of Haven. You are no kin of mine._";
	text1 = "_Of course. You are a [P]! You must be constantly approached by frauds and tricksters. You have great wealth and power. Just know that I want to support you, cousin. As I'm sure you want to support your kin._";
	code =
		ro_faction(-1);
		sf(31,19,1);
	break;
	
begintalknode;
	state = 161;
	nextstate = 160;
	condition = 1;
	question = "_Um, support?_";
	text1 = "His smile is soft and pleasant, but you can see the ice in his eyes. _Of course. I can see that you need guidance. I can give it. I know you would always help family in return, if they needed it. You are so wealthy and powerful, after all._";
	text2 = "_But enough of that. You are busy. Let me show you the crafts of your homeland!_ He leads you off through the dusty mountains of worked stone.";

begintalknode;
	state = 160;
	nextstate = 162;
	condition = gf(31,19) > 0;
	question = "_You lead the stone workers?_";
	text1 = "_Well, does anyone in the Ro really lead anyone? I have been elevated, but I am still only one voice. The Low Dhaga has many stone workers, and there are many disputes. It is hard to find the right prices for things._";
	text2 = "_I help in all of this._";

begintalknode;
	state = 162;
	nextstate = -1;
	condition = 1;
	question = "_Why are you trusted to lead?_";
	text1 = "_Alas, I have no clan of my own. Most of my kin went to settle new land in the eastern wilds. I wanted to stay here and work stone._";
	text2 = "_Since I have no clan, all the clans will trust me. I am poor in wealth, but I have so much trust._";

begintalknode;
	state = 162;
	nextstate = 163;
	condition = 1;
	question = "_What is your main duty?_";
	text1 = "_If we are to prosper, we need to make sure our stone sells for enough gold. I figure out what the best price for all of us to charge is, and I make sure nobody secretly undercuts us to sell more._";

begintalknode;
	state = 163;
	nextstate = -1;
	condition = 1;
	question = "_So your main job is to keep prices high?_";
	text1 = "_Yes! That was beautifully said!_ This is actually kind of illegal in Haven, but this probably isn't the right battle to fight right now.";

begintalknode;
	state = 160;
	nextstate = 164;
	condition = gf(31,19) > 0;
	question = "_It must be difficult to be a leader in the Ro._";
	text1 = "_Not really, as long as you don't mind being assassinated eventually. You have to build wealth and form a clan, if you want to stay safe. Alas, this has been difficult. Can't get paid well. Can't find a wife._";

begintalknode;
	state = 164;
	nextstate = -1;
	condition = 1;
	question = "_I would think that this position would lead to prosperity._";
	text1 = "_So would I. Unfortunately, there aren't good opportunities to take bribes in this position. If I take a bribe to help someone, others get mad. Soon, stabbing happens._";

begintalknode;
	state = 164;
	nextstate = 165;
	condition = 1;
	question = "_Why is it hard to find a wife?_";
	text1 = "_To find a wife, I need supervised visits with proper prospects. Getting these has been an ordeal._";

begintalknode;
	state = 165;
	nextstate = 160;
	condition = 1;
	question = "_An ordeal? Why?_";
	text1 = "_All such meets have to be arranged and carefully planned. To make a proper match, I need a clan. My clan is far away._";
	text2 = "_If I had more wealth, many problems are solved immediately. To get wealth, alas, I need powerful relatives._ You get a hopeful look.";
	code =
		if (gf(31,19) > 1)
			rs(2);
	break;

begintalknode;
	state = 160;
	nextstate = 166;
	condition = gf(31,19) > 0;
	question = "_You claim to be my cousin._";
	text1 = "_I do! I am no fraud. We Ro take matters of clan very, very carefully. Not an immediate cousin, mind, but the link is there._";

begintalknode;
	state = 166;
	nextstate = -1;
	condition = 1;
	question = "_You're my cousin how, exactly?_";
	text1 = "He immediately recites a long list of names and how they are related. It goes by in a blur. None of it sticks in your mind. A few times, he gets confused.";
	text2 = "You think he may be your eighth cousin, fifteen times removed.";

begintalknode;
	state = 166;
	nextstate = -1;
	condition = 1;
	question = "_Where is the rest of our clan?_";
	text1 = "_Consort Darmal won his family a lot of advantages when he was in Haven. When he died, they chose to move into the wilds and form their own kingdom._";
	text2 = "_I chose to stay because I love my home and my work. However, without help, I will be forced to go join them. Then our clan will have less influence in the Rokaj._";

begintalknode;
	state = 166;
	nextstate = 167;
	condition = gf(31,19) == 1;
	question = "_What sort of aid do you need, exactly?_";
	text1 = "_Oh, I would never ask you for help! You are a visitor! A guest! That said, a bit of money would help. A hundred coins would help me get well established. A walled home. Some land. A wife._";
	text2 = "_Then your clan will be far stronger in the Low Dhaga._";

begintalknode;
	state = 167;
	nextstate = 160;
	condition = 1;
	question = "_I'm a little short myself. Maybe I can help you later._";
	text1 = "He fails to hide his disappointment. _Oh, I understand completely. I would never trouble you by begging for money. Please, let me be the one who helps you._";

begintalknode;
	state = 167;
	nextstate = 160;
	condition = coins_amount() >= 100;
	question = "_Anything for family!_ Give 100 coins.";
	text1 = "Honored Ryx is overjoyed. _Cousin, you have changed my life. All roads are open to me now. One day, you can return and visit my estate and meet my family._ He embraces you. _The Ro will hear of this generosity! Truly, you are one of us._";
	code =
		change_coins(-100,1);
		ro_faction(2);
		violence(-2);
		sf(31,19,2);
	break;
	
begintalknode;
	state = 167;
	nextstate = 160;
	condition = 1;
	question = "_I think you are a fraud. Don't beg from me again._";
	text1 = "The hall suddenly becomes very quiet. You realize that all of the stone workers were spying on you very intently.";
	text2 = "Honored Ryx maintains his composure well in the face of this rejection. _Of course, [P] of Haven._ He bows very deeply. _I am sorry to pester you with something so minor._";
	code =
		ro_faction(-2);
		violence(2);
		sf(31,19,2);
	break;

begintalknode;
	state = 160;
	nextstate = 169;
	condition = gf(31,21) <= 1 && gf(31,19) > 0;
	question = "_I could use more stone to rebuild my forts._";
	text1 = "_Really? Well, let me check my notes._ Ryx walks to a table and shuffles through some papers. _You know, there is a bounty, of sorts. Khorfax Quarry. Full of ka-wolves, so I hear. Lost in the early days of the raids._";
	text2 = "_If it can be cleared, the owner will pay in stone. Then I, your cousin, will win some small advantage._";
	code = 
		set_flag(31,21,1);
		toggle_quest(42,1);
	break;

begintalknode;
	state = 169;
	nextstate = -1;
	condition = 1;
	question = "_Where is the Khorfax Quarry?_";
	text1 = "_Not far. Not far at all. Take the roads to the north._";

begintalknode;
	state = 169;
	nextstate = -1;
	condition = 1;
	question = "_So we can just walk in and kill the ka-wolves?_";
	text1 = "_That is the general idea, yes. I mean, you're not the first to try. A few young hunters have proved themselves by taking a head or two, but the creatures are there in numbers._";

begintalknode;
	state = 169;
	nextstate = -1;
	condition = 1;
	question = "_And why has no other clan taken it over?_";
	text1 = "_Because that would mean a war between clans. Nobody wants that now. Not when things are ... changing._";

begintalknode;
	state = 169;
	nextstate = -1;
	condition = 1;
	question = "_How will you get advantage from this?_";
	text1 = "_My finders fee, of course. I will earn a small portion of the bounty to feed myself._";
	text2 = "_Please don't resent it. That is how I earn my bread for the job I do._";

begintalknode;
	state = 160;
	nextstate = 168;
	condition = gf(31,21) == 1 && gf(32,11) > 0;
	question = "_The Khorfax Quarry has been reclaimed._";
	text1 = "You tell the tale to a fascinated audience of stoneworkers. Honored Ryx is overjoyed. _You will be happy to know that the situation has improved. The clan who owned that quarry? A bunch of them died in a ka-wolf raid. The rest fled._";
	text2 = "_The quarry belongs to us now! I will make sure you get all the finest stone. As for me, I will make sure it is run well. Cousin, this is the beginning of a great work. A new empire of stone in the Ro! We will be partners in a mighty enterprise!_";
	code = 
		set_flag(31,21,2);
		toggle_quest(42,10);
		award_party_xp(MED_QUEST_XP);

		activate_mine_resource(19);
	break;		

begintalknode;
	state = 168;
	nextstate = -1;
	condition = 1;
	question = "_Um, maybe calm down there a little._";
	text1 = "_Oh. Yes. Of course. You have other work to do here, don't you? Well, keep it in mind. You could have an amazing side business here._";
	text2 = "_Excuse me. I'm going to get to work. I have to hire guards and get them out there before anyone tries to steal the claim of the [P]. Not that they would dare!_ He runs off.";
	action = END_TALK;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(31,21) > 1;
	question = "_How is my quarry doing?_";
	text1 = "_Well! The first shipments of stone should have arrived at [F3]. They will not stop. I am true to my word, and I am very grateful. Soon, I will be able to see a matchmaker!_";
		
// Galabas

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "You meet a tall, gaunt, grim skeleton of the Ro. He is thin and pale, with gray, sparse hair and many faint scars. He sits in the corner of the inn and quietly watches the merriment taking part. The other patrons carefully avoid him.";
	text2 = "When you come close, he motions for you to join him. _You are the famous outsider, yes? I am Galabas of the High Litha._ His voice is quiet and raspy. He is careful to show no signs of warmth or human cheer.";
	text3 = "_Join me. I have come on a mission. I would talk to you, because of the land you are from._";
	text5 = "Galabas sips his ale and picks at a bowl of stew. He probably doesn't actually need to eat. This grim warrior of the High Litha probably survives on on a diet of pure disdain.";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "_I would like to learn about the High Litha._";
	text1 = "_You should. It is part of your mission here. You should learn of us and our purpose._";

begintalknode;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "_How do I learn?_";
	text1 = "_The only way to learn about a people. Climb to our icy land. See our ways. We are warriors and judges._";
	text2 = "_I became a judge with advanced age. I was a warrior since I could pull a bowstring._";

begintalknode;
	state = 191;
	nextstate = 194;
	condition = 1;
	question = "_You have been a warrior for a long time?_";
	text1 = "_As long as I could. My poor province can't waste material. I have fought in many campaigns over many years._";
	text2 = "";

begintalknode;
	state = 194;
	nextstate = 195;
	condition = gf(92,25) == 1;
	question = "_Maybe in your travels you've heard of a lost banner of Haven?_";
	text1 = "He pauses. He is lost in thought for a while. _It is hard to be a judge. To know who to help and who to insult. I know of the banner. A prized trophy of our doomed Great Uprising._";
	text2 = "_I can't decide about it alone. I can only tell you who to talk to._";

begintalknode;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "_Where should I go?_";
	text1 = "_Go to Etzae. That poor town places more value in tattered trophies. Talk to the Master there. He will understand the importance you place on this matter. Then Haven might be appeased with little loss of honor. I will say no more._";
	code =
		sf(92,25,3);
		toggle_quest(17,3);
	break;
	
begintalknode;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "_Why have you come here?_";
	text1 = "_The High Litha store the old ways and beliefs of the Ro. Sometimes, we are called to judge. Thus, we must watch all that happens, so we are prepared._";
	text2 = "_I am investigating._";

begintalknode;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "_Are you welcomed here?_";
	text1 = "_My people are welcomed everywhere. We freeze and hunger so that the Ro can stay true to itself._";
	text2 = "_We are also feared. But in a friendly way._";

begintalknode;
	state = 192;
	nextstate = 193;
	condition = 1;
	question = "_What are you investigating?_";
	text1 = "_The raids. Raiders have been attacking the Low Dhaga. Too many of them and too strange. Many of them are untrue. We must understand this to judge it. We must find their purpose._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_And what do you think their purpose is?_";
	text1 = "_I do not know. That is why I am here. To attack the [P] of Haven was a crude, brutal step, designed to create violence and chaos._";
	text2 = "_Our lack of understanding greatly upsets the High Litha._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_What have they done that is 'untrue'?_";
	text1 = "_The raiders fight with ka-beasts. Ka-wolves and ka-boars. They are bloodthirsty, mindless beasts. To invite them into our lands and arm and feed them is not true to the Rokaj._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = gf(80,10) >= 4;
	question = "_I took care of the raiders._";
	text1 = "_So I have heard. The symptom is dealt with, but the disease remains. The High Litha must be ready._";

begintalknode;
	state = 190;
	nextstate = 196;
	condition = gf(31,22) <= 1;
	question = "_I am from Haven._";
	text1 = "_Yes. You are called savior, by some. Others call you our fresh tormentor. The High Litha waits to judge._";
	text2 = "_Until that time comes, we need to make sure you understand us. We don't want a premature war. That is why some must talk to you._";

begintalknode;
	state = 196;
	nextstate = -1;
	condition = gf(80,8) < 4 && gf(10,11) < 2;
	question = "_Who needs to talk to me about what?_";
	text1 = "_It is too soon to say. I don't know what will happen. It might never be necessary. If chaos spreads, return to me for insight._";
	code =
		toggle_quest(18,1);
	break;
	
begintalknode;
	state = 196;
	nextstate = 197;
	condition = gf(80,8) >= 4 || gf(10,11) >= 2;
	question = "_Who needs to talk to me about what?_";
	text1 = "_You have heard of the Geld Nas? They are a guild of assassins. They have a special role in the workings of the Ro._";
	code =
		toggle_quest(18,3);
	break;

begintalknode;
	state = 197;
	nextstate = 198;
	condition = 1;
	question = "_Know much about the Geld Nas, do you?_";
	text1 = "_We are the High Litha. All Ro answer to us. Even the Geld Nas. They kill and shape the Rokaj, but they are not a fire that burns uncontrolled. They can't be._";

begintalknode;
	state = 197;
	nextstate = 198;
	condition = 1;
	question = "_And why are you telling me this?_";
	text1 = "_The Geld Nas do not like to speak, but we say they need to. They have acted in a way that will anger Haven more than needed._";
	text2 = "_They will speak with you. Explanations must be given. You can learn._";

begintalknode;
	state = 198;
	nextstate = -1;
	condition = 1;
	question = "_None of this makes any sense._";
	text1 = "_And the assassinations that are happening don't make sense to you. But they can make sense. They should._";

begintalknode;
	state = 198;
	nextstate = -1;
	condition = 1;
	question = "_Where can I learn?_";
	text1 = "_There is a town in the Kranas. It is called Isskale. Talk to Markko Esterer. He can send you where you need to go. It will be profitable to you. Very much so. Both in knowledge and tribute._";
	text2 = "_My message is given. I don't actually know more than what I have said. Please leave me._";
	action = END_TALK;
	code =
		sf(31,22,1);
	break;
	
// Leto

begintalknode;
	tag = 220;
	state = -1;
	nextstate = 220;
	condition = 1;
	question = "Name";
	text1 = "There is a short, stocky man wandering around the docks, inspecting the piles of stone. He's not from around here. He still wears his traveling clothes: crude leather jerkin and pants. His bow is over his shoulder.";
	text2 = "When he sees you browsing nearby, he moves to join you. _You. I know you. You're the Havenite. The one they talkin' about. I'm Leto. I come from the Kranas for trade. We have lots we want. Lots we offer. Good trade. Haven got interest?_";
	text5 = "Leto leads you around the yard, pointing at the piles of goods and telling you everything you didn't want to know about them. _Haven trades lots now. Rebellion in air. Forts need rebuilding. Kranas is listening. Leto is a good trader._";
	action = INTRO;

begintalknode;
	state = 220;
	nextstate = 221;
	condition = 1;
	question = "_What do you want from the Low Dhaga?_";
	text1 = "_Stone. Buildings need stone. Trees of Kranas are good, but sometimes we need the best buildings. Buildings of stone. They can't make us what we really want, but they can do much._";

begintalknode;
	state = 221;
	nextstate = -1;
	condition = 1;
	question = "_What can they build for you?_";
	text1 = "_Buildings and barns and halls. The best clans, they have stone halls. For protection, for comfort. We Kranas, we love our wood. But stone, we can build with without angering the groves._";

begintalknode;
	state = 221;
	nextstate = -1;
	condition = 1;
	question = "_What do you wish they can build?_";
	text1 = "_Walls. The greatest work of the Low Dhaga. Walls for cities. Walls for clans. So we sleep tight with the kiddies in their beds. But Haven say: No stone walls. So we are never safe as we could be._";

begintalknode;
	state = 220;
	nextstate = 222;
	condition = 1;
	question = "_What do you offer to the Low Dhaga?_";
	text1 = "_We offer wood. The groves, they give the Kranas lots of the weak trees. We cut them down. Send the planks to the other Ro. Ro who don't have the luck of good forests._";
	text2 = "_But that's not why I'm here. No. I trade in the amber. The best kind, from the sacred sap of the groves._";

begintalknode;
	state = 222;
	nextstate = -1;
	condition = 1;
	question = "_How do you get the amber?_";
	text1 = "_The groves, they give it to us. Little by little over the years. Once the sacred trees shed sap? Don't care about it. They dribble it out and it keeps us fed._";
	text2 = "";

begintalknode;
	state = 222;
	nextstate = 223;
	condition = gf(31,23) <= 1;
	question = "_I would buy some of that._";
	text1 = "_Would you now?_ He grins. _Well, this is why we talk. Yes? Trade? You are a traveler. Go to north Dhaga. Through the Malachite Pass. Lots of trade there._";
	text2 = "_You go there, you pick something up for me on the way. Then you're paid. Wood and amber._";

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_I don't have time for that sort of errand._";
	text1 = "_Of course. Well, you bored in Malachite Pass? Come talk to old Leto. Good day to you._";
	action = END_TALK;
	
begintalknode;
	state = 223;
	nextstate = 224;
	condition = 1;
	question = "_I am traveling through the Low Dhaga. I can help._";
	text1 = "Before you can react, he presses something into your hand. It's an old iron key.";
	text2 = "_Malachite Pass, it has a big tower. Trading post. Should be something there, in a storage bay. That's what I want._";
	code = 
		if (gf(31,23) == 0) {
			set_spec_item(3,1);
			rs(1);
			}
		set_flag(31,23,1);
		toggle_quest(44,1);
	break;

begintalknode;
	state = 224;
	nextstate = -1;
	condition = 1;
	question = "_What is in the storage bay?_";
	text1 = "_Ah, well._ For a moment, he seems confused. _Things of my clan. Materials and tools. For crafting, like. We're lost without them. Lost in the raids. Want them back._";

begintalknode;
	state = 224;
	nextstate = -1;
	condition = 1;
	question = "_Where in the Malachite Pass is this storage bay?_";
	text1 = "_Lots of little paths through that pass. But one big one. Full of raiders, I hear. Also the big tower. Big bays under it. For storage. All sorts. That key? Is to Bay Three. That's where to go._";

begintalknode;
	state = 220;
	nextstate = 225;
	condition = gf(31,23) == 1 && has_spec_item(16);
	question = "_I got some tools and notes out of Malachite Pass._ Tell the tale.";
	text1 = "Leto takes the treasures you found and listens to your tale with fascination. The contents of the tower seem to take him by surprise, as do the traps you found.";
	text2 = "Finally, he says, _Well, you are the hero here, and no mistake. My clan is grateful. All our, um, things. That were ours. And we have them back now._ He gives you a pouch. It contains money and a piece of amber. _We'll send you wood too. This is worth it._";
	code = 
		set_spec_item(16,-1);
		set_flag(31,23,2);
		toggle_quest(44,10);
		award_party_xp(MED_QUEST_XP);
		change_coins(100,1);
		activate_mine_resource(20);
		change_crafting(0,0,1,0,0);
	break;	
	
begintalknode;
	state = 225;
	nextstate = 220;
	condition = 1;
	question = "_Glad to be of assistance._";
	text1 = "_Leto isn't done helping yet. I have a few more trinkets and treasures. I'll sell them to you. Thank you again, Haven. From me and my clan._";
	
begintalknode;
	state = 225;
	nextstate = 220;
	condition = 1;
	question = "_Um, was the stuff in that bay really your property?_";
	text1 = "_What? Of course! All belongs to Leto's clan. If it didn't, would I have the key? All makes perfect sense._";
	text1 = "_But wait! Leto isn't done helping yet. I have a few more trinkets and treasures. I'll sell them to you. Thank you again, Haven. From me and my clan._";

begintalknode;
	state = 220;
	nextstate = -1;
	condition = gf(31,23) > 1;
	question = "_Let me see what you sell._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Leto's Crafts",
		  "shopdesc.",
		  27,3,0);	
	break;

begintalknode;
	state = 220;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "_Then stay safe on the roads. Enjoy the Rokaj!_";
	action = END_TALK;
			
// Envoy Sharyn

begintalknode;
	tag = 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Name";
	text1 = "There is a small woman sitting on this bench, one of the few you have met in the Low Dhaga. She has nice, clean clothes and properly cut hair. You have her pegged as from the Gentle Coast before she speaks.";
	text2 = "She rises and bows, very pleased to see you. _Ah, what a relief. Someone who won't look at me as a strange pet who escaped a cage. I am Envoy Sharyn, just here from the Gentle Coast. I am honored to meet you, [P]._";
	text5 = "You join Envoy Sharyn on her bench. You suspect that she spends lots of time here, waiting for a few seconds in which she can pester the Raasa. _It is a long vigil, but wearing down the highlanders takes a lot of work._";
	action = INTRO;

begintalknode;
	state = 250;
	nextstate = 251;
	condition = 1;
	question = "_Your name is Sharyn?_";
	text1 = "_It is, it is indeed._ She smiles.";

begintalknode;
	state = 251;
	nextstate = -1;
	condition = 1;
	question = "_Then where did the name come from?_";
	text1 = "_I'm sure you have already guessed. I was named in honor of your mother, after she married a man of the Low Dhaga. You will find many who share the names Sharyn and Darmal._";
	text2 = "_I have heard that your mother is not well. Please accept the kindest wishes of the Gentle Coast._";

begintalknode;
	state = 250;
	nextstate = 252;
	condition = 1;
	question = "_Why are you here to meet the Raasa?_";
	text1 = "_To irritate them. My Raasa sends me requests, and I pass them on. Here, they see the Gentle Coast as weaklings and insects, so I buzz in their ears until they deign to listen. I, of course, am exceptionally irritating._";

begintalknode;
	state = 252;
	nextstate = -1;
	condition = 1;
	question = "_Why are you irritating to the Dhagans?_";
	text1 = "_Because I am a woman who dares to leave the walls of her clan house. The Low Dhagans have backward ways. The Rokaj is a vassal of Haven, not a pit of eternal anarchic violence._";
	text2 = "She says, in a voice loud enough for the Raasa to hear, _Of course, the Dhagans sometimes give a hint of joining civilized society._";

begintalknode;
	state = 252;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of the Low Dhaga?_";
	text1 = "_That they are the most perfect form of Ro, the height of bravery and courage. At least, that is what they tell me._";
	text2 = "_So very brave. Why, their armed packs attacking the humble farmhouses of the Gentle Coast in the middle of the night is the height of Ro manliness!_";

begintalknode;
	state = 252;
	nextstate = 253;
	condition = 1;
	question = "_What is your current request?_";
	text1 = "_Of late, the Low Dhaga has filled with raiders. Many of those spill into our lands. I believe you had the honor of killing several of those. I am here to implore the Raasa here to, I don't know, actually do something for one minute!_";
	code =
		if (gf(31,24) == 0)
			sf(31,24,1);
	break;
	
begintalknode;
	state = 253;
	nextstate = -1;
	condition = 1;
	question = "_Have you talked to Haven's governor?_";
	text1 = "_The sea will rise to Prova Krug before Governor Aato does anything, ever. Excuse my frankness._";

	
begintalknode;
	state = 253;
	nextstate = -1;
	condition = 1;
	question = "_You get raided a lot?_";
	text1 = "_Yes. It is how the Gentle Coast is rewarded for giving the Rokaj two centuries of prosperity._";

begintalknode;
	state = 250;
	nextstate = 254;
	condition = gf(31,24) == 1 || gf(31,24) == 2;
	question = "_Any particular raiders I can look for?_";
	text1 = "She is amused. _My! I had heard that Havenites took joy in the hunt. But armed, cunning, human game? My Ro spirit is impressed._";
	text2 = "_There is one particular fellow. Jaxon Scar he is called, of the Low Dhaga. A particularly brutal and successful raider of my land. He hides in the deep hollows and valleys of the Low Dhaga. Then he descends to hurt my people._";
	text3 = "_We wish a hundred deaths on him, but we would settle for one. You may meet him when exploring the Low Dhaga._";
	code = 
		set_flag(31,24,2);
		toggle_quest(43,1);
	break;

begintalknode;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "_How can I recognize him?_";
	text1 = "_A pair of long scars, running down either side of his face. Jaxon Scar is not creatively nicknamed._";
	text2 = "_He travels with a pack of brigands about a dozen strong. Be warned, he is very dangerous._";

begintalknode;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "_Where in the Low Dhaga should I look?_";
	text1 = "_Anywhere, twice. He moves quickly from camp to camp, often stealing the caches of other thugs. When you find brigand lairs, that is where he will be. Eventually._";

begintalknode;
	state = 250;
	nextstate = 255;
	condition = gf(31,24) == 2 && gf(167,12) > 0;
	question = "_I killed Jaxon Scar._ Tell the tale.";
	text1 = "She listens with glee. _Oh, my. The Low Dhagans are shamed that they could not commit such a deed. I will make sure the Raasa hears of it three times._";
	text2 = "_You have the gratitude of the Gentle Coast. In addition, let me pay a bounty._ She gives you a ring and a runestone. _A generous reward, I think. It is the way of my land._";
	code = 
		set_flag(31,24,3);
		toggle_quest(43,10);
		award_party_xp(MED_QUEST_XP);
		reward_give(365);
		reward_give(429);
	break;		

begintalknode;
	state = 255;
	nextstate = -1;
	condition = 1;
	question = "_The way of the Gentle Coast?_";
	text1 = "_The way of trade. Everyone does what they are best at, and others pay for it. The Gentle Coast does not fight much. Why fight ourselves, when we can pay those who are so much better at it?_";

						
// Erud Ponta

begintalknode;
	tag = 280;
	state = -1;
	nextstate = 280;
	condition = 1;
	question = "Name";
	text1 = "This is a tower of the Erudico, the mages and researchers of the Rokaj. It's a strange place, full of twisty, shadowy corridors that smell of smoke and failed experiments. Most of the oddballs here live in their own private worlds. This young man is actually willing to talk to you.";
	text2 = "_Oh, hello, hello. Most visitors give up before they get in so far. I am Erud Ponta of the Erudico, student of war. I suppose someone should greet you and try to get your money. I know you will want to talk to me._";
	text5 = "Erud Ponta emerges from a mental haze. _Oh. Hello, visitor. You are still here. I am still studying war, and I can still trade the trinkets of my craft with you. I know you will want to talk._";
	action = INTRO;

begintalknode;
	state = 280;
	nextstate = 281;
	condition = 1;
	question = "_You are a student of war?_";
	text1 = "_And proudly so. It is the oldest obsession of the Ro. It is also the only thing to study in the Low Dhaga now. We fund this outpost by selling our work to those who want it._";

begintalknode;
	state = 281;
	nextstate = -1;
	condition = 1;
	question = "_There is nothing else one can study in the Low Dhaga?_";
	text1 = "_The Erudico have made great advances in stonework and architecture. Our mathematicians made the greatest Dhagan buildings and walls possible._";
	text2 = "_However, in this violent and uncertain time, it is necessary to focus on war._";

begintalknode;
	state = 281;
	nextstate = -1;
	condition = 1;
	question = "_Do you sell to all in the Low Dhaga?_";
	text1 = "_We do. The Erudico do not judge those who come through our doors. For example, I won't presume to look into your heart before I sell to you._";

begintalknode;
	state = 281;
	nextstate = 282;
	condition = 1;
	question = "_Why did you choose this path?_";
	text1 = "_I have only been an Erud for five years. When I was accepted, I chose my focus. I had been alert. I saw the way things must travel._";

begintalknode;
	state = 282;
	nextstate = -1;
	condition = 1;
	question = "_The way things must travel?_";
	text1 = "_History is flowing in the Rokaj. It flows faster by the day. I did not make our world, but I will not fight it as it chooses._";
	text2 = "He isn't making a lot of sense, but you suppose that is normal for an Erud.";

begintalknode;
	state = 280;
	nextstate = -1;
	condition = gf(80,10) >= 4;
	question = "_Why would I want to talk to you?_";
	text1 = "_You have won a great victory in the Low Dhaga, but the Rokaj is larger than it seems. And angrier. You should be prepared._";

begintalknode;
	state = 280;
	nextstate = 283;
	condition = gf(80,10) < 4;
	question = "_Why would I want to talk to you?_";
	text1 = "_The Low Dhaga has been plagued with raiders and strange monsters. We knew that Haven would have to help us eventually. Your lazy governor never acted, so you came instead._";
	text2 = "_It is not the ordinary business the clans deal with. The raiders use strange magic._";

begintalknode;
	state = 283;
	nextstate = -1;
	condition = gf(35,12) == 0;
	question = "_I've discovered no strange magic yet._";
	text1 = "_You will see. They have mastered the ka-wolves. That should not be possible. The Eruds think they have mastered some strange power. Perhaps you will find it. If you do, I might provide guidance._";

begintalknode;
	state = 283;
	nextstate = 284;
	condition = gf(35,12) > 0;
	question = "_A raider in the Malachite Pass was controlling the ka-beasts with a staff. It broke._";
	text1 = "He is fascinated by this. He has you describe the staff in detail. _Well, this is the least surprising solution to the problem. Brute coercion._";
	text2 = "_A little disappointing, but not bad news. There is a clear lesson you should learn._";

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_What is this clear lesson?_";
	text1 = "_If they can use this power, you can use it too. If you can get one of these staffs and master it, you will surpass them in power easily._";

begintalknode;
	state = 280;
	nextstate = 285;
	condition = 1;
	question = "_I would like to shop._";
	text1 = "_Then I will show you my wares. I have little in stock, alas. It is a scary time. If you see something you like, I will take your money. Are you buying or selling?_";
	text2 = "";

begintalknode;
	state = 285;
	nextstate = -1;
	condition = 1;
	question = "_I am buying._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Erud Ponta",
		  "shopdesc.",
		  28,5,0);	
	break;

begintalknode;
	state = 285;
	nextstate = -1;
	condition = 1;
	question = "_I am selling._";
	text1 = "You conclude your business.";	
	code = 
		start_alter_items(0);
	break;

begintalknode;
	state = 285;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything else._";
	text1 = "_Then we thank you for visiting our tower. Please be careful when poking around in the side rooms._";
	action = END_TALK;

						
//

begintalknode;
	tag = 310;
	state = -1;
	nextstate = 310;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 310;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
														
//

begintalknode;
	tag = 340;
	state = -1;
	nextstate = 340;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 340;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
														
//

begintalknode;
	tag = 370;
	state = -1;
	nextstate = 370;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 370;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

														
//

begintalknode;
	tag = 400;
	state = -1;
	nextstate = 400;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 400;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";				